import request from '/@/utils/request'
// 查询摄像头状态日志列表
export function listCameraStatusLog(query:object) {
  return request({
    url: '/api/v1/system/cameraStatusLog/list',
    method: 'get',
    params: query
  })
}
// 查询摄像头状态日志详细
export function getCameraStatusLog(id:number) {
  return request({
    url: '/api/v1/system/cameraStatusLog/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增摄像头状态日志
export function addCameraStatusLog(data:object) {
  return request({
    url: '/api/v1/system/cameraStatusLog/add',
    method: 'post',
    data: data
  })
}
// 修改摄像头状态日志
export function updateCameraStatusLog(data:object) {
  return request({
    url: '/api/v1/system/cameraStatusLog/edit',
    method: 'put',
    data: data
  })
}
// 删除摄像头状态日志
export function delCameraStatusLog(ids:number[]) {
  return request({
    url: '/api/v1/system/cameraStatusLog/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
// 关联cameras表选项
export function listCameras(query:object){
   return request({
     url: '/api/v1/system/cameras/list',
     method: 'get',
     params: query
   })
}
